#ifndef CIERRE_H_
#define CIERRE_H_

#include <iostream>
#include "string.h"
using namespace std;

class Cierre : public ObjetoModelo {
	
private:

	string nombre;

public:

	Cierre(){
		this->nombreClase = "Cierre";
	}

	void agregarAtributo(string n, string v) throw(...) {
		if(n == "nombre"){ 
			string s = "";
			for (unsigned int i = 1; i<v.size(); i++){
				s+= v[i];
			}
			this->nombre = s;

		} else {
			throw AtributoDesconocidoException();
		}
	}
	
	string cerrarTag(){
		return this->nombre;
	}

};
#endif 